package com.ylxn.io;

import java.io.InputStream;

public class Resources {
    public static InputStream getResourceAsInputStream(String filePath){
        /**
         * 根据配置文件路径，将文件路径变为字节流，存储在内存中
         */
        InputStream inputStream = Resources.class.getClassLoader().getResourceAsStream(filePath);
        return inputStream;
    }
}
